/**
 * Copyright (C), 2018-2018, https://blog.fundodoo.com
 * Author:   醉探索戈壁
 * Date:     2018/6/22 下午6:58
 * Description: 多环境配置文件测试demo
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.fundodoo.blog.drunk3.controller;

import com.fundodoo.blog.drunk3.yaml.ProfilesYaml;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 *
 * @author 醉探索戈壁
 * @create 2018/6/22 下午6:58
 * @since 1.0.0
 */
@RestController
public class ProfileslController {

    private final ProfilesYaml profilesYaml;

    public ProfileslController(ProfilesYaml profilesYaml){
        this.profilesYaml = profilesYaml;
    }

    @RequestMapping("/p")
    public ProfilesYaml testContext(){
        return profilesYaml;
    }

}
